package com.example.userdemo.demos;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: UserController
 * @Description:
 * @Date 2024/01/29 13:10
 * @Author songshaoqiu
 **/
@RestController
public class UserController {

    @Autowired
    private UserService userService;
    @GetMapping("/updateUser")
    public User updateUser(@RequestParam("name")String name){
     return   userService.updateUser(name);
    }
}
